home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / lib / xulrunner-1.9.0.14 / chrome / classic.jar / skin / classic / global / autocomplete.css < prev    next >
Encoding:
Cascading Style Sheet File  |  2008-04-12  |  5.2 KB  |  212 lines

  1. /* ***** BEGIN LICENSE BLOCK *****
  2.  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  3.  *
  4.  * The contents of this file are subject to the Mozilla Public License Version
  5.  * 1.1 (the "License"); you may not use this file except in compliance with
  6.  * the License. You may obtain a copy of the License at
  7.  * http://www.mozilla.org/MPL/
  8.  *
  9.  * Software distributed under the License is distributed on an "AS IS" basis,
  10.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  11.  * for the specific language governing rights and limitations under the
  12.  * License.
  13.  *
  14.  * The Original Code is Mozilla Communicator client code, released
  15.  * March 31, 1998.
  16.  *
  17.  * The Initial Developer of the Original Code is
  18.  * Netscape Communications Corporation.
  19.  * Portions created by the Initial Developer are Copyright (C) 1998-2001
  20.  * the Initial Developer. All Rights Reserved.
  21.  *
  22.  * Contributor(s):
  23.  *   Joe Hewitt (hewitt@netscape.com)
  24.  *   Pamela Greene (pamg.bugs@gmail.com)
  25.  *
  26.  * Alternatively, the contents of this file may be used under the terms of
  27.  * either the GNU General Public License Version 2 or later (the "GPL"), or
  28.  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  29.  * in which case the provisions of the GPL or the LGPL are applicable instead
  30.  * of those above. If you wish to allow use of your version of this file only
  31.  * under the terms of either the GPL or the LGPL, and not to allow others to
  32.  * use your version of this file under the terms of the MPL, indicate your
  33.  * decision by deleting the provisions above and replace them with the notice
  34.  * and other provisions required by the GPL or the LGPL. If you do not delete
  35.  * the provisions above, a recipient may use your version of this file under
  36.  * the terms of any one of the MPL, the GPL or the LGPL.
  37.  *
  38.  * ***** END LICENSE BLOCK ***** */
  39.  
  40. /* ===== autocomplete.css =================================================
  41.   == Styles used by the autocomplete widget.
  42.   ======================================================================= */
  43.  
  44. @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
  45. @namespace html url("http://www.w3.org/1999/xhtml");
  46.  
  47. /* ::::: autocomplete ::::: */
  48.  
  49. textbox {
  50.   cursor: default;
  51.   padding: 0;
  52. }
  53.  
  54. textbox[enablehistory="true"] {
  55.   -moz-appearance: none;
  56.   border: 0;
  57.   background-color: transparent;
  58. }
  59.  
  60. /* Used by autocomplete widgets that don't have an icon. Gross. -dwh */
  61. textbox.padded {
  62.   padding-top: 1px;
  63.   padding-bottom: 1px;
  64.   -moz-padding-start: 2px;
  65.   -moz-padding-end: 0px;
  66. }
  67.  
  68. .autocomplete-textbox-container {
  69.   -moz-box-align: center;
  70. }
  71.  
  72. textbox[enablehistory="true"] > .autocomplete-textbox-container {
  73.   -moz-appearance: menulist-textfield;
  74. }
  75.  
  76. .textbox-input-box {
  77.   margin: 0 3px;
  78.   -moz-box-align: center;
  79. }
  80.  
  81. /* ::::: autocomplete popups ::::: */
  82.  
  83. panel[type="autocomplete"],
  84. panel[type="autocomplete-richlistbox"],
  85. .autocomplete-history-popup {
  86.   border-width: 1px;
  87.   -moz-border-top-colors: ThreeDDarkShadow;
  88.   -moz-border-right-colors: ThreeDDarkShadow;
  89.   -moz-border-bottom-colors: ThreeDDarkShadow;
  90.   -moz-border-left-colors: ThreeDDarkShadow;
  91.   padding: 0;
  92.   background-color: -moz-Field;
  93. }
  94.  
  95. .autocomplete-history-popup {
  96.   max-height: 180px;
  97. }
  98.  
  99. /* ::::: tree ::::: */
  100.  
  101. .autocomplete-tree {
  102.   -moz-appearance: none !important;
  103.   border: none !important;
  104.   background-color: transparent !important;
  105.   color: MenuText;
  106. }
  107.  
  108. .autocomplete-treecol {
  109.   -moz-appearance: none !important;
  110.   margin: 0 !important;
  111.   border: none !important;
  112.   padding: 0 !important;
  113. }
  114.  
  115. /* GTK calculates space for a sort arrow */
  116. .autocomplete-treecol > .treecol-sortdirection {
  117.   -moz-appearance: none !important;
  118. }
  119.  
  120. .autocomplete-treebody::-moz-tree-cell-text {
  121.   -moz-padding-start: 8px;
  122. }
  123.  
  124. treechildren.autocomplete-treebody::-moz-tree-row(selected) {
  125.  background-color: Highlight;
  126. }
  127.  
  128. treechildren.autocomplete-treebody::-moz-tree-cell-text(selected) {
  129.   color: HighlightText !important;
  130. }
  131.  
  132. .autocomplete-treebody::-moz-tree-image(treecolAutoCompleteValue) {
  133.   max-width: 16px;
  134.   height: 16px;
  135. }
  136.  
  137. /* ::::: richlistbox autocomplete ::::: */
  138.  
  139. .autocomplete-richlistbox {
  140.   margin: 0;
  141.   background-color: transparent;
  142. }
  143.  
  144. .autocomplete-richlistitem[selected="true"] {
  145.   background-color: Highlight;
  146.   color: HighlightText;
  147. }
  148.  
  149. .autocomplete-richlistitem {
  150.   padding: 1px 2px;
  151.   border-bottom: 1px solid ThreeDLightShadow;
  152.   color: MenuText;
  153. }
  154.  
  155. .ac-site-icon {
  156.   width: 16px; 
  157.   height: 16px;
  158.   margin: 0 5px -3px 3px;
  159. }
  160.  
  161. .ac-type-icon {
  162.   width: 16px; 
  163.   height: 16px;
  164. }
  165.  
  166. .ac-extra > .ac-result-type-tag {
  167.   margin: 0 4px;
  168. }
  169.  
  170. .ac-extra > .ac-comment {
  171.   padding-right: 4px;
  172. }
  173.  
  174. .ac-ellipsis-after {
  175.   margin: 2px 0px 0px 0px !important;
  176.   padding: 0; 
  177.   min-width: 1em;
  178. }
  179.  
  180. .ac-normal-text {
  181.   margin: 2px 0px 0px 0px !important;
  182.   padding: 0;
  183. }
  184.  
  185. .ac-normal-text > html|span {
  186.   margin: 0 !important;
  187.   padding: 0;
  188. }
  189.  
  190. html|span.ac-emphasize-text {
  191.   font-weight: bold;
  192.   text-decoration: underline;
  193. }
  194.  
  195. html|span.ac-emphasize-alt {
  196.   text-decoration: underline;
  197. }
  198.  
  199. .ac-title, .ac-url {
  200.   overflow: hidden;
  201. }
  202.  
  203. /* ::::: textboxes inside toolbarpaletteitems ::::: */
  204.  
  205. toolbarpaletteitem > toolbaritem > textbox > hbox > hbox > html|*.textbox-input {
  206.   visibility: hidden;
  207. }
  208.  
  209. toolbarpaletteitem > toolbaritem > * > textbox > hbox > hbox > html|*.textbox-input {
  210.   visibility: hidden;
  211. }
  212.